package com.module.app.receiver

import android.content.Context
import com.module.app.ext.loginTopFlow
import com.module.frame.ext.postEvent
import com.module.third.bean.push.IPushType
import com.module.third.bean.push.PushData

/**
 * Author: yanxuwen
 * Date: 2023/3/22
 * Desc:
 */
class PushDealUtils {
    companion object {
        fun dealPush(context: Context, pushData: PushData<Any>) {
            when (pushData.type) {
                IPushType.IPush.notice ->
                    com.module.app.utils.JumpUtils.jump(context, pushData.jump, pushData.getData(Any::class.java))
                IPushType.IPush.login ->
                    postEvent(loginTopFlow, true)
                IPushType.IPush.Invite_Reward -> {
                }
            }
        }
    }

}